From 86d19eeb9a7bc9401b2dd7c7f6f824e4f589158e Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 11 Jun 2003 05:07:39 +0000 Subject: [PATCH] Minor leak fixes. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@387 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.h | 2 +- gpsbabel/geo.c | 1 + gpsbabel/mapsend.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/csv_util.h b/gpsbabel/csv_util.h index a0bd4c09b..872173d79 100644 --- a/gpsbabel/csv_util.h +++ b/gpsbabel/csv_util.h @@ -24,7 +24,7 @@ char * csv_stringtrim(const char *string, const char *enclosure, int strip_max); #else CSV_STRINGTRIM(const char *string, const char *enclosure, int strip_max, DEBUG_PARAMS); -#define csv_stringtrim( s, e ) CSV_STRINGTRIM( s, e, __FILE__, __LINE__); +#define csv_stringtrim( s, e,m ) CSV_STRINGTRIM( s, e, m, __FILE__, __LINE__); #endif char * diff --git a/gpsbabel/geo.c b/gpsbabel/geo.c index c3ff29c4c..8e23c5434 100644 --- a/gpsbabel/geo.c +++ b/gpsbabel/geo.c @@ -145,6 +145,7 @@ geo_end(void *data, const char *el) in_name--; } else if (strcmp(el, "type") == 0) { + wpt_tmp->icon_descr_is_dynamic = 1; wpt_tmp->icon_descr = xstrdup(typestr); memset(typestr,0, MY_CBUF); in_type--; diff --git a/gpsbabel/mapsend.c b/gpsbabel/mapsend.c index cde422c1b..639ab3064 100644 --- a/gpsbabel/mapsend.c +++ b/gpsbabel/mapsend.c @@ -536,6 +536,7 @@ void mapsend_track_hdr(const route_head * trk) fwrite(&c, 1, 1, mapsend_file_out); fwrite(tname, c, 1, mapsend_file_out); + xfree(tname); /* total nodes (waypoints) this track */ i = 0; -- 2.30.2